package com.gdou.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class DeptDto {
    @NotNull
    @Pattern(regexp = ".{1,20}")
    private String name;

    @NotNull
    @Pattern(regexp = ".{6,30}")
    private String loc;
}
